using System.Collections.Generic;

namespace Kayac.Statistics
{
	public static class Integration
	{
		private struct Interval
		{
			public double x0;

			public double x1;

			public double x2;

			public double y0;

			public double y1;

			public double y2;

			public double area;

			public int leftIndex;

			public int rightIndex;

			public Interval(double xBegin, double xEnd, IFunction func)
			{
				x0 = 0.0;
				x1 = 0.0;
				x2 = 0.0;
				y0 = 0.0;
				y1 = 0.0;
				y2 = 0.0;
				area = 0.0;
				leftIndex = 0;
				rightIndex = 0;
			}

			public override string ToString()
			{
				return null;
			}
		}

		public static double IntegrateAdaptive(IFunction func, int domainEstimateIteration, double epsilon, int minIteration, int maxIteration, List<CdfEntry> cdfOut)
		{
			return 0.0;
		}

		public static double IntegrateAdaptive(IFunction func, double xMin, double xMax, int minIteration, int maxIteration, double epsilon, List<CdfEntry> cdfOut)
		{
			return 0.0;
		}

		public static double IntegrateSimpson(double x0, double x1, double x2, double y0, double y1, double y2)
		{
			return 0.0;
		}

		private static void TryDivide(List<Interval> intervals, int index, int minIteration, int maxIteration, double epsilon, IFunction func, int depth)
		{
		}
	}
}
